import {EntityId, PageQueryParams} from "kf-web-library";
import {Article, User_Summary} from "@/services";

export interface ArticleCollectionPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  articleId?: EntityId;  //文章ID
  userId?: EntityId;    //用户ID
}

export interface ArticleCollection {
  id: EntityId;
  article: Article; //文章
  user: User_Summary; //用户
  createTime: string; //创建时间
  modifyTime: string; //修改时间
}

export interface ArticleCollection_Create{
  articleId: string; //文章id
  userId: number; //用户id
}


export interface ArticleCollection_Modify extends ArticleCollection_Create {
  id: EntityId;
}

export interface ArticleCollection_Patch extends Partial<ArticleCollection_Modify> {
  id: EntityId;
}


